package com.jarics.test.client.entities;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.CaptionPanel;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RichTextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Libelle extends Composite {

	public Libelle() {

		final AbsolutePanel absolutePanel = new AbsolutePanel();
		initWidget(absolutePanel);

		final CaptionPanel libelle = new CaptionPanel("Libellé");
		absolutePanel.add(libelle, 0, 0);
		libelle.setSize("738px", "241px");

		final HorizontalPanel horizontalPanel = new HorizontalPanel();
		libelle.setContentWidget(horizontalPanel);
		horizontalPanel.setSpacing(3);

		final VerticalPanel verticalPanel_2 = new VerticalPanel();
		horizontalPanel.add(verticalPanel_2);
		horizontalPanel.setCellVerticalAlignment(verticalPanel_2, HasVerticalAlignment.ALIGN_MIDDLE);

		final Label label = new Label("Proposé");
		verticalPanel_2.add(label);
		verticalPanel_2.setCellHorizontalAlignment(label, HasHorizontalAlignment.ALIGN_CENTER);

		final HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
		verticalPanel_2.add(horizontalPanel_1);
		horizontalPanel_1.setSpacing(3);

		final Label enLabel = new Label("EN");
		horizontalPanel_1.add(enLabel);

		final TextBox textBox = new TextBox();
		horizontalPanel_1.add(textBox);
		textBox.setSize("150px", "50px");
		textBox.setVisibleLength(100);
		textBox.setReadOnly(true);

		final HorizontalPanel horizontalPanel_2 = new HorizontalPanel();
		verticalPanel_2.add(horizontalPanel_2);
		horizontalPanel_2.setSpacing(3);

		final Label FR = new Label("FR");
		horizontalPanel_2.add(FR);

		final TextBox textBox_1 = new TextBox();
		horizontalPanel_2.add(textBox_1);
		textBox_1.setSize("150px", "50px");
		textBox_1.setReadOnly(true);

		final VerticalPanel verticalPanel_1 = new VerticalPanel();
		horizontalPanel.add(verticalPanel_1);
		horizontalPanel.setCellVerticalAlignment(verticalPanel_1, HasVerticalAlignment.ALIGN_MIDDLE);

		final Label label_1 = new Label("Corrigé");
		verticalPanel_1.add(label_1);
		verticalPanel_1.setCellHorizontalAlignment(label_1, HasHorizontalAlignment.ALIGN_CENTER);

		final RichTextArea richTextArea = new RichTextArea();
		verticalPanel_1.add(richTextArea);
		richTextArea.setSize("150px", "50px");

		final RichTextArea richTextArea_1 = new RichTextArea();
		verticalPanel_1.add(richTextArea_1);
		richTextArea_1.setSize("150px", "50px");

		final VerticalPanel verticalPanel_3 = new VerticalPanel();
		horizontalPanel.add(verticalPanel_3);
		horizontalPanel.setCellVerticalAlignment(verticalPanel_3, HasVerticalAlignment.ALIGN_MIDDLE);

		final Label commentaireLabel = new Label("Commentaires");
		verticalPanel_3.add(commentaireLabel);
		verticalPanel_3.setCellHorizontalAlignment(commentaireLabel, HasHorizontalAlignment.ALIGN_CENTER);

		final RichTextArea richTextArea_2 = new RichTextArea();
		verticalPanel_3.add(richTextArea_2);
		richTextArea_2.setSize("150px", "50px");

		final RichTextArea richTextArea_3 = new RichTextArea();
		verticalPanel_3.add(richTextArea_3);
		richTextArea_3.setSize("150px", "50px");

		final VerticalPanel verticalPanel_4 = new VerticalPanel();
		horizontalPanel.add(verticalPanel_4);
		verticalPanel_4.setSpacing(5);
		horizontalPanel.setCellHorizontalAlignment(verticalPanel_4, HasHorizontalAlignment.ALIGN_LEFT);
		horizontalPanel.setCellVerticalAlignment(verticalPanel_4, HasVerticalAlignment.ALIGN_MIDDLE);

		final CheckBox checkBox = new CheckBox();
		verticalPanel_4.add(checkBox);
		checkBox.setText("Utilisé");

		final CheckBox checkBox_1 = new CheckBox();
		verticalPanel_4.add(checkBox_1);
		checkBox_1.setText("Validé");

		final CaptionPanel captionPanel = new CaptionPanel("Historique des changements");
		verticalPanel_4.add(captionPanel);

		final ListBox listBox = new ListBox();
		captionPanel.setContentWidget(listBox);
		listBox.setSize("100%", "100%");
		listBox.setName("Historique");
		listBox.addItem("Erick Audet, 2009-10-07");

		final Button copierButton = new Button();
		verticalPanel_4.add(copierButton);
		copierButton.setText("Copier");

		final Button sauvegarderButton = new Button();
		verticalPanel_4.add(sauvegarderButton);
		sauvegarderButton.setText("Sauvegarder");

		final Button button_2 = new Button();
		verticalPanel_4.add(button_2);
		button_2.setText("Annulé");
	}

}
